package com.schoolcloud.social.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.schoolcloud.social.entity.SocEventMien;
import com.schoolcloud.social.service.SocEventMienService;
import com.schoolcloud.social.mapper.SocEventMienMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author hongmizfb
* @description 针对表【soc_event_mien(活动风采)】的数据库操作Service实现
* @createDate 2025-03-07 14:46:40
*/
@Service
public class SocEventMienServiceImpl extends ServiceImpl<SocEventMienMapper, SocEventMien>
    implements SocEventMienService{

    @Override
    public List<SocEventMien> getEventListByEventId(String eventId) {
        return lambdaQuery().eq(SocEventMien::getEventId, eventId).list();
    }

    @Override
    public void removeByEventId(String eventId) {
        lambdaUpdate().eq(SocEventMien::getEventId, eventId).remove();
    }
}




